#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int main()
{
	int n = 0;
	while (scanf("%d", &n) != EOF)
	{
		if (n > 0)
			printf("1\n");
		if (n == 0)
			printf("0.5\n");
		if (n < 0)
			printf("0\n");
	}
	return 0;
}